<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>表单</h2>
<form action="/" method="post">

    <label for="name">姓名:</label>
    <input id="name" name="name" required type="text">
    <!--br指换行-->
    <br>

    <!-- 单选按钮 -->
    <label>性别:</label>
    <input checked id="male" name="gender" type="radio" value="male">
    <label for="male">男</label>
    <input id="female" name="gender" type="radio" value="female">
    <label for="female">女</label>

    <br>

    <label for="date">出生日期:</label>
    <input id="date" name="password" required type="text">
    <label>按格式yyyy-mm-dd</label>

    <br>
    <label for="school">学校:</label>
    <input id="school" name="password" required type="text">
    <br>

    <!-- 下拉列表 -->
    <label for="subject">专业:</label>
    <select id="subject" name="subject">
        <option value="软件工程">软件工程</option>
        <option value="土木工程">土木工程</option>
        <option value="某某工程">某某工程</option>
        <option value="XX工程">XX工程</option>
    </select>
    <br>

    <!-- 复选框 -->
    <label for="subject">体育特长:
        <input name="subject" type="checkbox" value="Bike">篮球
        <input name="subject" type="checkbox" value="Car">排球
        <input name="subject" type="checkbox" value="Car">足球
        <input name="subject" type="checkbox" value="Car">游泳
    </label>

    <br>

    <label>上传照片:</label>

    <input accept="image/gif, image/jpeg" name="imgfile" type="file"/>

    <br>
    <label for="password">密码:</label>
    <input id="password" name="password" required type="password">
    <br>

    <label for="geren">个人介绍:</label>
    <textarea cols="30" id="geren" name="geren" required rows="4">

    </textarea>

    <br>

    <!-- 提交按钮 -->
    <input type="submit" value="提交">
    <input type="reset" value="取消">
</form>


</body>
</html>